<?php
if (!defined('IN_MEDIA')) die("Hack");
function players($url,$type,$width,$height){
    global $web_link;
	$url = get_link_total($url);
		if ($type==3)
		   $player = "<OBJECT type=\"application/x-oleobject\" CLASSID=\"CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6\" codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\" width=\"650\" height=\"455\"><param name=\"url\" value=\"$url\"><param name=\"stretchToFit\" value=\"true\"><PARAM name=\"EnableContextMenu\" value=\"0\"><param NAME=\"volume\" VALUE=\"100\"><EMBED type=\"application/x-mplayer2\" quality=\"high\" pluginspage=\"http://www.microsoft.com/Windows/MediaPlayer/\" src=\"$url\" WIDTH=\"650\" HEIGHT=\"455\" AutoStart=\"1\" EnableContextMenu=\"0\" Mute=\"0\" volume=\"100\" stretchToFit=\"true\" ShowStatusBar=\"1\"></OBJECT>";
		elseif ($type==36 || $type==32 || $type==19 || $type==5) 
			$player = "<object id=\"flashplayer\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"650\" height=\"455\">
<param name=\"movie\" value=\"".$web_link."/player/player.swf?file=$url&amp;pathlateral=true&amp;type=video&amp;\" />
<param name=\"allowFullScreen\" value=\"true\" />
<param name=\"allowScriptAccess\" value=\"always\" />
<param name=\"transparent\" value=\"wmode\" />
<embed name=\"flashplayer\" src=\"".$web_link."/player/player.swf?file=$url&amp;pathlateral=true&amp;type=video&amp;\" transparent=\"wmode\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowScriptAccess=\"always\" width=\"650\" height=\"455\" />
</object>";
		elseif ($type==34) 
			$player = "<embed src=\"player.swf\" flashvars=\"file=$url&skin=stylish.swf&amp;lightcolor=3883FF&amp;bufferlength=10&amp;volume=100&amp;autostart=false&amp;icons=false&amp;repeat=list&amp;menu=false&amp;playlist=over\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" wmode=\"transparent\" width=\"650\" height=\"455\">";
		elseif ($type==33 || $type==30 || $type==29 || $type==24 || $type==10 || $type==23 || $type==9 || $type==40 || $type==28 || $type==41 || $type==42 || $type==43 || $type==44)
			$player = "<embed type=\"application/x-shockwave-flash\" src=\"".$web_link."/player.swf\" flashvars=\"plugins=plugins/proxy.swf&proxy.link=$url&amp;autostart=true&pathlateral=true&amp;type=video\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"650\" height=\"455\">";
        elseif ($type==37 || $type==4 || $type==38)
            $player = "<embed name=\"flashplayer\" src=\"$web_link/player/player.swf\" FlashVars=\"file=$url&autostart=true&repeat=list&a utoNext=true&amp;backcolor=0x996666&frontcolor=0xC CCCCC&lightcolor=0x557722\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" autostart=\"true\" autoNext=\"true\" allowScriptAccess=\"always\" height=\"490\" width=\"650\" />";
		elseif ($type==17)
			$player = "<embed allownetworking=\"internal\" allowscriptaccess=\"never\" src=\"$url\" quality=\"high\" bgcolor=\"#ffffff\" wmode=\"transparent\" allowfullscreen=\"true\" type=\"application/x-shockwave-flash\" width=\"650\" height=\"455\">";
		elseif ($type==45 || $type==12)
			$player = "<embed allownetworking=\"internal\" allowscriptaccess=\"never\" src=\"http://www.videozer.com/player/player.swf?v=$url&em=TRUE&sd=www.videozer.com\" quality=\"high\" bgcolor=\"#ffffff\" wmode=\"transparent\" allowfullscreen=\"true\" type=\"application/x-shockwave-flash\" width=\"650\" height=\"455\">";
		elseif ($type==31)
			$player = "<embed name=\"flashplayer\" src=\"".$web_link."/player/mediaplayer.swf\" flashvars=\"file=$url&amp;pathlateral=true&amp;type=video&amp;\" transparent=\"wmode\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowScriptAccess=\"always\" width=\"650\" height=\"455\" />";	
		elseif ($type==18)
			$player = "<embed type=\"application/x-shockwave-flash\" src=\"".$web_link."/player.swf\" flashvars=\"plugins=plugins/proxy.swf&proxy.link=$url&amp;autostart=true&pathlateral=true&amp;type=video\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"650\" height=\"455\">";
		elseif ($type==35)
			$player = "<embed name=\"flashplayer\" src=\"".$web_link."/player/mediaplayer.swf\" flashvars=\"file=$url&amp;autostart=true&amp;type=video&amp;pathlateral=true\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"650\" height=\"455\">";
		elseif ($type==22)
			$player = "<embed src=\"http://www.4shared.com/flash/player.swf\" Flashvars=\"plugins=http://phim47.com/phim/no-cache/sharedphim47.swf&4sharedid=$url&amp;autostart=true&amp;type=video&amp;pathlateral=true\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"650\" height=\"455\">";
        elseif ($type==1)
            $player = "<embed name=\"flashplayer\" src=\"/player/player.swf\" FlashVars=\"file=$url&autostart=true&repeat=false&a utoNext=false&amp;backcolor=0x000000&frontcolor=0xFFFFF&lightcolor=0x557722\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" autostart=\"true\" autoNext=\"true\" allowScriptAccess=\"always\" height=\"455\" width=\"650\" />"; 
		elseif ($type==21)
			$player = "<embed src=\"http://www.2shared.com/flash/player.swf\" Flashvars=\"plugins=http://phim47.com/phim/no-cache/sharedphim47.swf&2sharedid=$url&amp;autostart=true&amp;type=video&amp;pathlateral=true\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"650\" height=\"455\">";
		elseif ($type==6)
			$player = "<object id=\"flashplayer\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"650\" height=\"455\">
<param name=\"movie\" value=\"http://www.static.megavideo.com/mv_player.swf\" />
<param name=\"allowFullScreen\" value=\"true\" />
<param name=\"allowScriptAccess\" value=\"always\" />
<param name=\"transparent\" value=\"#FFFFFF\" />
<embed name=\"flashplayer\" src=\"$url\" transparent=\"wmode\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowScriptAccess=\"always\" width=\"650\" height=\"455\" />
</object>";
		elseif ($type==13)
			$player = "<object id=\"flashplayer\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"650\" height=\"455\">
<param name=\"movie\" value=\"http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?version=AFrontend.5.5.4.1024&permalinkId=$url&player=videodetailsembedded&videoAutoPlay=0&id=anonymous\" />
<param name=\"allowFullScreen\" value=\"true\" />
<param name=\"allowScriptAccess\" value=\"always\" />
<param name=\"transparent\" value=\"#FFFFFF\" />
<embed name=\"flashplayer\" src=\"http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?version=AFrontend.5.5.4.1024&permalinkId=$url&player=videodetailsembedded&videoAutoPlay=0&id=anonymous\" transparent=\"wmode\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowScriptAccess=\"always\" width=\"650\" height=\"455\" />
</object>";
		elseif ($type==27)
			$player = "<iframe allowtransparency=\"true\" style=\"border: 0px none;\" name=\"tamtayp\" id=\"tamtayp\" src=\"goc.php?url=$url\" width=\"$width\" frameborder=\"0\" height=\"$height\" scrolling=\"no\"></iframe>";
		elseif ($type==7)
			$player = "<iframe allowtransparency=\"true\" style=\"border: 0px none;\" name=\"tamtayp\" id=\"tamtayp\" src=\"tamtay.php?url=$url\" width=\"$width\" frameborder=\"0\" height=\"$height\" scrolling=\"no\"></iframe>";		
		elseif ($type==14 || $type==16 || $type==2 || $type==11 || $type==20 || $type==39)
		$player = "<embed type=\"application/x-shockwave-flash\" src=\"$url\" width=\"570\" height=\"450\" quality=\"high\" allowfullscreen=\"true\" allowscriptaccess=\"always\" >";		
		
  return $player;
}
?>